import SubApplicationDetailComp from "containers/setting/sub-application/sub-application-management/sub-application-info";
import SubApplicationIndex from "containers/setting/sub-application/sub-application-index";
import EditSubApplication from "containers/setting/sub-application/sub-application-management/edit-sub-application";
import EditHomePageCard from "containers/setting/sub-application/module-display-setting/module-display-index";
import SubApplicationLayoutSetting from "containers/setting/sub-application/sub-application-management/sub-application-layout-setting";

//子应用管理
const SubApplicationMenu = {
    key: 'sub-application',
    url: '/main/setting/sub-application',
    components: SubApplicationIndex,
    parent: 'setting',
    tenant:true,
    company: false,
    children:{
      //新建子应用
      newSubApplicationDetail: {
        key: 'new-sub-application',
        url: '/main/setting/sub-application/new-sub-application',
        components: SubApplicationDetailComp,
        parent: 'sub-application'
      },
      //子应用详情编辑页
      personGroupDetail: {
        key: 'sub-application-detail',
        url: '/main/setting/sub-application/sub-application-detail/:id',
        components: SubApplicationDetailComp,
        parent: 'sub-application'
      },
      //编辑从应用列表中选择的应用
      EditSubApplication: {
        key: 'edit-sub-application',
        url: '/main/setting/sub-application/edit-sub-application',
        components: EditSubApplication,
        parent: 'sub-application'
      },
      //编辑首页卡片应用
      EditHomePageCard: {
        key: 'edit-home-page-card',
        url: '/main/setting/sub-application/edit-home-page-card',
        components: EditHomePageCard,
        parent: 'sub-application'
      },
      //高级设置
      SubApplicationLayoutSetting: {
        key: 'sub-application-layout-setting',
        url: '/main/setting/sub-application/sub-application-layout-setting',
        components: SubApplicationLayoutSetting,
        parent: 'sub-application'
      },
    }
  };

export default SubApplicationMenu;
